<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "eventType".
 *
 * @property int $id
 * @property string $name
 * @property string $rgb
 * @property int $isDisabled
 * @property string $ctime
 */
class eventType extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'eventType';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['name', 'rgb'], 'required'],
            [['isDisabled'], 'integer'],
            [['ctime'], 'safe'],
            [['name'], 'string', 'max' => 32],
            [['rgb'], 'string', 'max' => 6],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'rgb' => 'Rgb',
            'isDisabled' => 'Is Disabled',
            'ctime' => 'Ctime',
        ];
    }
}
